/**
 * LoginBox
 */
function maskShow() {
	$(".mask,.mainBody").css({
		width: $(window).width(),
		height: $(window).height()
	});
	if($(window).width() > 750) {
		$(".box").css({
			left: $(window).width() / 2 - 175,
			top: $(window).height() / 2 - 200
		});
	}
}
window.onload = maskShow();
window.onresize = function() {maskShow();}
$("#login").click(function() {
	$(".mask").css({
		display: "block"
	});
	$(".box").css({
		display: "block"
	});
	setTimeout(function() {
		$(".mask").css({
			"background-color": "rgba(1,1,1,.7)"
		});
		$(".box").css({
			opacity: "1"
		});
	}, 50);
});
$("#boxClose").click(function() {
	$(".mask").css({
		"background-color": "rgba(1,1,1,0)"
	});
	$(".box").css({
		opacity: "0"
	});
	setTimeout(function() {
		$(".mask").css({
			display: "none"
		});
		$(".box").css({
			display: "none"
		});
	}, 300);
});